package src.example.商场收银系统.v3;

/**
 * 打折收费子类
 */

public class CashRebate implements src.example.商场收银系统.v3.CashSuper {
    private double monyRebate;  //打几折

    public CashRebate(double monyRebate){
        this.monyRebate=monyRebate;
    }

    @Override
    public double getTotalPrice(Integer num, double price) {
        return num*price*this.monyRebate;
    }
}
